//
//  Album.m
//  UIHomeWork20_XML解析
//
//  Created by tusm on 16/8/10.
//  Copyright © 2016年 tusm. All rights reserved.
//

#import "Album.h"

@implementation Album
- (NSString *)description{

    if (_pageNo) {
        return [NSString stringWithFormat:@"%@", _pageNo];
    } else if (_pageSize) {
        return [NSString stringWithFormat:@"%@", _pageSize];
    } else if (_totalCount) {
        return [NSString stringWithFormat:@"%@", _totalCount];
    } else {
        return [NSString stringWithFormat:@"%@ - %@", _name, _actors];
    }
}
//
- (void)setValue:(id)value forUndefinedKey:(NSString *)key{

    if ([key isEqualToString:@"pageNo"]) {
        _pageNo = value;
    }
}



@end
